import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './plugins/element.js'
import './assets/common.css'
import VueAwesomeSwiper from 'vue-awesome-swiper'
// import style
import 'swiper/css/swiper.css'
Vue.use(VueAwesomeSwiper)

Vue.config.productionTip = false

let token = localStorage.getItem('token')
let phone = localStorage.getItem('phone')
if(token){
  store.commit('LoginModule/setToken',token)
  store.commit('LoginModule/setphone',phone)
}

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
